﻿using B.S.BasicData.API.Read.DTOS.Leave;
using B.S.BasicData.Domain.Entities.Leave;
using B.S.BasicData.ErrorCode;
using MediatR;

namespace B.S.BasicData.API.Read.Application.Command.Leave
{
    /// <summary>
    /// 获取申请列表请求命令
    /// </summary>
    public class GetMyLeaveCommand:IRequest<ApiPaging<LeaveDTO>>
    {

        /// <summary>
        /// 登录人
        /// </summary>
        public string loginname {  get; set; }

        /// <summary>
        /// 当前页
        /// </summary>
        public int pageindex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int pagesize { get; set; } = 15;
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime? statetime { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? endtime { get; set; }
        /// <summary>
        /// 申请状态
        /// </summary>
        public LeaveStateEnum? state { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string? leavename {  get; set; }
    }
}
